package com.ustc.hewei.snowflakemodule.util;

import java.io.IOException;
import java.util.Properties;

/**
 * @author hewei
 * @version 1.0
 * @description: 读取配置文件
 * @date 2022/11/14 21:32
 */

public class PropertyFactory {

    private static final Properties properties = new Properties();

    static {
        try {
            properties.load(PropertyFactory.class.getClassLoader().getResourceAsStream("snowflake.properties"));
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

    public static Properties getProperties() {
        return properties;
    }
}
